AITranslate\AI_Translate_Core D

Total Complexity 767
Dependencies 9
Dependents 33
Total lines 5,331
Lines of code 3,181
Logical lines of code 1,860
Comment lines 1,447
Methods 103
Properties 12

Methods 103

Method Rating Maintainability Complexity Lines of code
batch_translate_items()
D
19
66 190
translate_text()
D
21
49 192
add_open_graph_meta_tags()
D
28
40 126
translate_fluentform_fields()
D
28
30 142
get_current_language()
C
34 31 80
translate_menu_items()
C
36 30 75
reverse_translate_slug()
C
30 21 142
validate_api_settings()
B
38 23 61
get_homepage_content()
B
38 21 67
translate_url()
B
40 21 51
translate_template_part()
B
40 19 56
get_translated_slug()
B
35 16 96
add_alternate_hreflang_links()
B
39 17 61
add_simple_meta_description()
B
39 16 62
parse_translated_request()
B
42 17 46
update_slug_translations_on_save()
A
39 13 64
make_api_request()
A
38 11 72
identify_post_from_url()
A
39 11 66
get_cache_statistics()
A
44 9 48
display_language_switcher()
A
44 9 45
save_to_cache()
A
46 9 41
initialize_cache_directories()
A
50 9 34
generate_website_context_suggestion()
A
43 8 49
clear_global_ui_cache()
A
48 9 32
translate_url_slugs()
A
49 9 31
clear_cache_for_language()
A
50 9 26
remove_marker_from_jetpack_og_tags()
A
51 9 26
build_translation_prompt()
A
46 8 37
translate_plugin_content()
A
50 8 30
translate_post_content()
A
52 8 24
extract_security_tokens()
A
39 4 83
clear_transient_cache()
S
46 6 40
generate_title_from_url()
S
52 7 23
generate_cache_key()
S
55 7 20
cleanup_expired_cache()
S
58 7 16
handle_404_redirect()
S
57 7 15
exclude_rendered_shortcode_html()
S
44 4 55
is_only_excluded_shortcodes()
S
52 6 24
enhance_search_query()
S
53 6 23
validate_settings()
S
56 6 18
translate_search_result_title()
S
56 6 18
is_plugin_supported()
S
59 6 14
is_cache_expired()
S
47 4 38
do_translate()
S
48 4 31
translate_widget_title()
S
57 5 16
get_assets_dir()
S
59 5 15
translate_search_form()
S
47 3 41
translate_path_segments()
S
52 4 25
get_global_ui_element()
S
53 4 22
filter_post_type_permalink()
S
54 4 21
translate_search_terms()
S
57 4 18
translate_search_placeholders()
S
50 3 31
translate_search_result_excerpt()
S
59 4 15
translate_search_page_title()
S
59 4 15
translate_search_content()
S
59 4 15
force_menu_cache_clear()
S
61 4 13
clear_menu_cache()
S
51 3 27
get_cached_content()
S
61 4 11
translate_terms()
S
62 4 11
get_available_languages()
S
49 2 31
clear_translation_cache()
S
64 4 10
restore_shortcode_pairs()
S
60 3 13
get_supported_plugins()
S
48 1 43
translate_search_query()
S
61 3 12
clear_memory_and_transients()
S
56 2 20
extract_shortcode_pairs()
S
57 2 17
get_detectable_languages()
S
70 3 6
remove_translation_marker()
S
69 3 6
remove_marker_from_bloginfo()
S
70 3 6
get_caching_strategy()
S
63 3 10
init()
S
60 2 13
get_default_settings()
S
55 1 19
get_api_providers()
S
57 1 19
get_instance()
S
71 2 6
schedule_cleanup()
S
73 2 5
get_settings()
S
68 2 7
get_api_url_for_provider()
S
65 2 8
clear_slug_cache_for_language()
S
63 2 10
needs_translation()
S
75 2 4
translate_navigation()
S
65 2 9
conditionally_add_fluentform_filter()
S
72 2 5
clear_slug_cache_for_post()
S
63 2 10
get_extractable_shortcodes()
S
63 1 13
__construct()
S
60 1 12
get_cache_dir()
S
74 1 4
get_language_name()
S
75 1 4
translate_site_title()
S
78 1 3
translate_tagline()
S
78 1 3
clear_slug_cache_table()
S
72 1 5
clear_all_cache()
S
75 1 5
set_current_language()
S
81 1 3
hook_display_language_switcher()
S
82 1 3
strip_all_shortcodes_for_cache()
S
75 1 4
clean_html_string()
S
67 1 7
text_to_slug()
S
80 1 3
get_truly_excluded_shortcodes()
S
73 1 6
get_all_memory_cache()
S
80 1 3
is_in_memory_cache()
S
78 1 3
get_from_memory_cache()
S
78 1 3
set_in_memory_cache()
S
79 1 3
clear_prompt_cache()
S
77 1 4
cache_global_ui_element()
S
62 1 10
normalize_text_for_cache()
S
74 1 5